// { "framework": "Vue"} 
if(typeof app=="undefined"){app=weex}
if(typeof eeuiLog=="undefined"){var eeuiLog={_:function(t,e){var s=e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):e});if(typeof this.__m==='undefined'){this.__m=app.requireModule('debug')}this.__m.addLog(t,s)},debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("debug",e)},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("log",e)},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("info",e)},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("warn",e)},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("error",e)}}}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./src/pages/member/shopCard/shopCard.vue?entry=true");
/******/ })
/************************************************************************/
/******/ ({

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
  data: function data() {
    return {
      statusBarHeight: eeui.getStatusBarHeightPx()
    };
  },
  created: function created() {
    this.initIconFont();
  },
  props: {
    title: String,
    back: {
      "default": true
    }
  },
  methods: {
    backClick: function backClick() {
      if (this.back) {
        eeui.closePage();
      }
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/shopCard/shopCard.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/shopCard/shopCard.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _api_card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../api/card */ "./src/api/card.js");
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../components/myNavbar/myNavbar.vue */ "./src/components/myNavbar/myNavbar.vue");
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ __webpack_exports__["default"] = ({
  name: '',
  components: {
    myNavbar: _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_2___default.a
  },
  filters: {},
  // 过滤器
  data: function data() {
    return {
      haveShopCard: false,
      currentId: '',
      //当前的卡id
      isTimeout: false,
      //卡是否过期
      iconUrl: ['wallet-consumption.png', 'wallet-income.png'],
      shopCardDetail: [],
      isAllshopCard: true,
      indicatorDots: '',
      shopCardInfo: [],
      loadinging: false,
      maxPageNum: 0,
      pageNum: 1,
      pageSize: 10
    };
  },
  created: function created() {
    this.getCardList();
  },
  methods: {
    getCardList: function getCardList() {
      var _this = this;

      eeuiLog.log('请求用户的账户卡和福利金的余额数据--');
      Object(_api_card__WEBPACK_IMPORTED_MODULE_1__["list"])({
        cardType: 1,
        pageSize: 10000
      }).then(function (res) {
        eeuiLog.log('接收用户信息--' + JSON.stringify(res));

        if (res.type == 'success') {
          if (res.data.data.length > 0) {
            _this.haveShopCard = true;
            _this.shopCardInfo = _this.formatShopCardInfo(res.data.data);
            _this.currentId = _this.shopCardInfo[0].id;

            if (_this.shopCardInfo[0].timeout) {
              _this.isTimeout = true;
            }

            _this.getCardBill(_this.currentId);
          }
        }
      })["catch"](function (error) {
        eeuiLog.log(error);
      });
    },
    //获取账单数据
    getCardBill: function getCardBill(cardId) {
      var _this2 = this;

      this.loadinging = true;
      var params = {
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        cardId: cardId
      };
      eeuiLog.log('请求用户的福利金卡信息--');
      Object(_api_card__WEBPACK_IMPORTED_MODULE_1__["cardBillList"])(params).then(function (res) {
        eeuiLog.log('接收用户信息--' + JSON.stringify(res));

        if (res.type == 'success') {
          _this2.formatShopCardDetail(res.data.data).forEach(function (item) {
            _this2.shopCardDetail.push(item);
          }); // this.shopCardDetail = this.shopCardDetail.concat(this.formatShopCardDetail(res.data.data))


          eeui.loadingClose();
          _this2.loadinging = false;
        }
      })["catch"](function (error) {
        eeuiLog.log(error);
        _this2.loadinging = false;
      });
    },
    // 触底加载
    onloading: function onloading() {
      if (this.loadinging == false) {
        this.pageNum += 1; // modal.toast({ message: '加载中', duration: 1 });

        eeui.loading();
        this.getCardBill(this.currentId);
      }
    },
    //轮播滚动
    swiperChange: function swiperChange(e) {
      var shopCardInfo = this.shopCardInfo;
      var index = parseInt(e.index);
      var id = shopCardInfo[index].id;
      this.currentId = id;

      if (this.shopCardInfo[index].timeout) {
        this.isTimeout = true;
      } else {
        this.isTimeout = false;
      }

      this.shopCardDetail = [];
      this.pageNum = 1, this.getCardBill(id);
    },
    //goShopping
    goShopping: function goShopping() {
      var _this3 = this;

      eeuiLog.info('this.data.currentId--' + JSON.stringify(this.currentId));
      var shopCardInfo = this.shopCardInfo;
      eeuiLog.info('shopCardInfo--' + JSON.stringify(shopCardInfo));

      if (this.isTimeout == false) {
        if (shopCardInfo.length > 0) {
          shopCardInfo.map(function (item) {
            if (_this3.currentId == item.id) {
              if (item.isAllshopCard) {
                eeui.openPage({
                  url: 'root://pages/index.js',
                  swipeBack: 'false',
                  statusBarType: 'immersion',
                  statusBarStyle: false
                }, function (result) {});
              } else {
                // let id = this.currentId
                var params = {
                  tagIds: item.tagIds,
                  name: item.memo
                };
                eeui.openPage({
                  url: 'root://pages/member/specialArea/specialArea.js',
                  params: params,
                  statusBarType: 'immersion',
                  statusBarStyle: false
                }, function (result) {});
              }
            }
          });
        }
      }
    },
    //数据转化
    formatShopCardInfo: function formatShopCardInfo(data) {
      var _this4 = this;

      eeuiLog.info('卡数据data--' + JSON.stringify(data));
      eeuiLog.info('卡数据Date.now()--' + Date.now());

      if (data.length > 0) {
        data.map(function (item) {
          item.timeout = false;

          if (item.endDate < Date.now()) {
            item.timeout = true;
          }

          item.startDate = _this4.formatDate2day(item.startDate);
          item.endDate = _this4.formatDate2day(item.endDate);

          if (item.tags.length > 0) {
            item.tag = '仅限购买部分商品';
            item.isAllshopCard = false;
          } else {
            item.tag = '适用购买全场商品';
            item.isAllshopCard = true;
          }

          item.tagIds = [];

          if (item.tags.length > 0) {
            item.tags.map(function (item1) {
              item.tagIds.push(item1.id);
            }); // item.tagIds.push(8)
          }
        });
        this.currentId = data[0].id;
        this.indicatorDots = data.length;
        eeuiLog.info('卡数据data--' + JSON.stringify(data));
      }

      return data;
    },
    formatShopCardDetail: function formatShopCardDetail(data) {
      var _this5 = this;

      eeuiLog.info('卡账单数据data--' + JSON.stringify(data));

      if (data.length > 0) {
        data.map(function (item) {
          item.createDate = _this5.formatTime(item.createDate);
          item.result = (item.credit - item.debit).toFixed(2);
          item.balance = Number(item.balance).toFixed(2);

          if (item.type == 0) {
            item.tag = '充值-';
            item.isIncome = true;
            item.icon = 'http://cdn.rzico.com/v4.0/wallet-income.png';
          } else if (item.type == 2) {
            item.tag = '';
            item.isIncome = true;
            item.icon = 'http://cdn.rzico.com/v4.0/wallet-income.png';
          } else if (item.type == 1) {
            item.tag = '';
            item.isIncome = false;
            item.icon = 'http://cdn.rzico.com/v4.0/wallet-consumption.png';
          }
        });
      }

      return data;
    },
    //时间格式化器
    formatDate2day: function formatDate2day(val) {
      var date = new Date(val);
      var y = date.getFullYear();
      var MM = date.getMonth() + 1;
      MM = MM < 10 ? '0' + MM : MM;
      var d = date.getDate();
      d = d < 10 ? '0' + d : d;
      return y + '-' + MM + '-' + d;
    },
    formatDate2Time: function formatDate2Time(val) {
      var date = new Date(val);
      var y = date.getFullYear();
      var MM = date.getMonth() + 1;
      MM = MM < 10 ? '0' + MM : MM;
      var d = date.getDate();
      d = d < 10 ? '0' + d : d;
      var h = date.getHours();
      h = h < 10 ? '0' + h : h;
      var m = date.getMinutes();
      m = m < 10 ? '0' + m : m;
      var s = date.getSeconds();
      s = s < 10 ? '0' + s : s;
      return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "navbar": {
    "width": "750",
    "height": "100"
  },
  "text": {
    "fontSize": "36"
  },
  "status-bar": {
    "backgroundColor": "#FFFFFF"
  },
  "iconLeft": {
    "color": "#000000",
    "fontSize": "30",
    "paddingLeft": "30",
    "paddingRight": "30",
    "fontFamily": "iconfont2"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-24e0e73e!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/shopCard/shopCard.vue":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-24e0e73e!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/shopCard/shopCard.vue ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "page-navbar": {
    "width": "750",
    "height": "90"
  },
  "page-navbar-title": {
    "color": "#ffffff",
    "fontSize": "28"
  },
  "mine-container": {
    "position": "relative",
    "backgroundColor": "rgb(248,248,248)"
  },
  "shopCard-top": {
    "width": "750",
    "backgroundColor": "#fcf8f5",
    "alignItems": "center",
    "paddingTop": "50",
    "paddingRight": 0,
    "paddingBottom": "20",
    "paddingLeft": 0
  },
  "page-section": {
    "position": "relative",
    "marginTop": 0,
    "marginBottom": 0,
    "width": "620",
    "borderRadius": "26"
  },
  "banner": {
    "height": "330"
  },
  "shopCard-bg": {
    "position": "relative",
    "marginTop": 0,
    "marginBottom": 0,
    "width": "620",
    "height": "330",
    "borderRadius": "26"
  },
  "shopCard-green": {
    "backgroundImage": "linear-gradient(to top right, #799e8f, #6d9584)"
  },
  "shopCard-red": {
    "backgroundImage": "linear-gradient(to top right, #ea706a, #db625d)"
  },
  "shopCard-grey": {
    "backgroundImage": "linear-gradient(to top right, #b0adbc, #9c99a9)"
  },
  "shopCard-bg-image": {
    "position": "absolute",
    "top": "2",
    "left": "2",
    "width": "620",
    "height": "330"
  },
  "shopCard-text1": {
    "position": "absolute",
    "fontSize": "30",
    "fontFamily": "STSongti",
    "fontWeight": "900",
    "lineHeight": "42",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "zIndex": 100,
    "left": "50",
    "top": "50"
  },
  "shopCard-text2": {
    "position": "absolute",
    "fontSize": "42",
    "fontFamily": "PingFangSC",
    "fontWeight": "bold",
    "color": "#efddac",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "lineHeight": "42",
    "zIndex": 100,
    "top": "155",
    "left": "50"
  },
  "shopCard-text3": {
    "position": "absolute",
    "fontSize": "20",
    "fontFamily": "STSongti",
    "fontWeight": "900",
    "lineHeight": "42",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "zIndex": 100,
    "right": "30",
    "bottom": "30"
  },
  "shopCard-text4": {
    "position": "absolute",
    "fontSize": "30",
    "fontFamily": "STSongti",
    "fontWeight": "900",
    "color": "#ffffff",
    "lineHeight": "42",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "zIndex": 100,
    "right": "50",
    "top": "50"
  },
  "shopCard-text4-border1": {
    "paddingTop": "2",
    "paddingRight": "2",
    "paddingBottom": "2",
    "paddingLeft": "2",
    "borderWidth": "1",
    "borderSolid": "solid",
    "borderColor": "#ebb3b1"
  },
  "shopCard-text4-border2": {
    "paddingTop": "13",
    "paddingRight": "24",
    "paddingBottom": "13",
    "paddingLeft": "24",
    "borderWidth": "1",
    "borderSolid": "solid",
    "borderColor": "#ebb3b1",
    "color": "#ffffff",
    "fontSize": "30",
    "fontFamily": "STSongti",
    "fontWeight": "900"
  },
  "shopCard-text5": {
    "position": "absolute",
    "fontSize": "20",
    "fontFamily": "STSongti",
    "fontWeight": "900",
    "lineHeight": "42",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "zIndex": 100,
    "right": "30",
    "bottom": "55"
  },
  "shopCard-text6": {
    "position": "absolute",
    "fontSize": "20",
    "fontFamily": "STSongti",
    "fontWeight": "900",
    "lineHeight": "42",
    "textShadow": "1px 1px 0px rgba(255, 255, 255, 0.3)",
    "left": "50",
    "bottom": "30"
  },
  "shopCard-text7": {
    "marginTop": "93",
    "textAlign": "center",
    "letterSpacing": "10",
    "fontSize": "28",
    "fontFamily": "Songti SC",
    "fontWeight": "900",
    "color": "#f9f4eb",
    "lineHeight": "42",
    "opacity": 0.9
  },
  "shopCard-text8": {
    "marginTop": "45",
    "textAlign": "center",
    "flexDirection": "row",
    "justifyContent": "center"
  },
  "shopCard-text8-border2": {
    "textAlign": "center",
    "fontSize": "40",
    "fontFamily": "Songti SC",
    "fontWeight": "900",
    "color": "rgba(254,254,254,1)",
    "width": "57",
    "height": "57",
    "marginTop": 0,
    "marginRight": "10",
    "marginBottom": 0,
    "marginLeft": "10",
    "paddingTop": "3",
    "paddingRight": "3",
    "paddingBottom": "3",
    "paddingLeft": "3",
    "borderWidth": "1",
    "borderSolid": "solid",
    "borderColor": "#ffffff",
    "borderRadius": "57"
  },
  "timeout": {
    "color": "rgb(94,93,93)",
    "backgroundImage": "linear-gradient(to top, rgb(161, 161, 161), rgb(223, 223, 223))"
  },
  "shopCard-bottom": {
    "fontSize": "32",
    "borderRadius": "16",
    "letterSpacing": "5",
    "paddingLeft": "20",
    "paddingRight": "20",
    "paddingTop": "20"
  },
  "shopCard-bottom-list": {
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center",
    "height": "125"
  },
  "bottom-item": {
    "width": "604",
    "display": "flex",
    "justifyContent": "center"
  },
  "shopCard-bottom-list-image": {
    "width": "66",
    "height": "66",
    "marginRight": "20"
  },
  "shopCard-bottom-list-top": {
    "display": "flex",
    "flexDirection": "row",
    "justifyContent": "space-between",
    "alignItems": "center",
    "paddingBottom": "5"
  },
  "shopCard-bottom-list-top1": {
    "fontSize": "28",
    "fontFamily": "PingFangSC",
    "fontWeight": "400",
    "color": "#1a1a1e",
    "maxWidth": "450",
    "display": "-webkit-box",
    "wordBreak": "break-all",
    "WebkitBoxOrient": "vertical",
    "textOverflow": "ellipsis",
    "overflow": "hidden",
    "lines": 2
  },
  "shopCard-bottom-list-top2": {
    "fontSize": "24",
    "fontFamily": "PingFangSC",
    "fontWeight": "bold",
    "color": "#1a1a1e"
  },
  "shopCard-bottom-list-bottom": {
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center",
    "justifyContent": "space-between",
    "fontSize": "24",
    "fontWeight": "400",
    "color": "#1a1a1e",
    "opacity": 0.3
  },
  "shopCard-bottom-list-bottom-text": {
    "fontSize": "24",
    "fontWeight": "400",
    "color": "#1a1a1e"
  },
  "redColor": {
    "color": "#ea716a"
  },
  "shopCard-button": {
    "marginTop": "40",
    "marginLeft": "190",
    "marginRight": "190",
    "height": "90",
    "backgroundColor": "#07c160",
    "color": "#ffffff",
    "border": "10",
    "marginBottom": "20"
  },
  "loading": {
    "width": "750",
    "display": "flex",
    "MsFlexAlign": "center",
    "WebkitAlignItems": "center",
    "WebkitBoxAlign": "center",
    "alignItems": "center"
  },
  "indicator": {
    "marginTop": "16",
    "height": "40",
    "width": "40",
    "color": "#0000FF"
  },
  "indicator-text": {
    "color": "#888888",
    "fontSize": "22",
    "textAlign": "center",
    "paddingTop": "20",
    "paddingBottom": "20"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', [_c('div', {
    staticClass: ["status-bar"],
    style: {
      height: _vm.statusBarHeight + 'px'
    }
  }), _c('navbar', {
    staticClass: ["navbar"],
    style: {
      backgroundColor: 'white'
    }
  }, [_c('navbar-item', {
    attrs: {
      "type": "left"
    },
    on: {
      "click": _vm.backClick
    }
  }, [(_vm.back) ? _c('div', [_c('text', {
    staticClass: ["iconLeft"]
  }, [_vm._v("")])]) : _vm._e()]), _c('navbar-item', {
    attrs: {
      "type": "title"
    }
  }, [_c('text', {
    staticClass: ["text"]
  }, [_vm._v(_vm._s(_vm.title))])])], 1)], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-24e0e73e!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/shopCard/shopCard.vue":
/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-24e0e73e!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/shopCard/shopCard.vue ***!
  \************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["mine-wallet"]
  }, [_c('myNavbar', {
    attrs: {
      "title": "福利卡"
    }
  }), _c('div', {
    staticClass: ["shopCard-top"]
  }, [(_vm.haveShopCard) ? _c('div', {
    staticClass: ["page-section", "page-section-spacing", "swiper"]
  }, [_c('slider', {
    staticClass: ["banner"],
    attrs: {
      "infinite": "false",
      "showIndicators": "true"
    },
    on: {
      "change": _vm.swiperChange
    }
  }, _vm._l((_vm.shopCardInfo), function(item) {
    return _c('div', {
      staticClass: ["banner-frame"]
    }, [_c('div', {
      class: ['shopCard-bg', [item.isAllshopCard == true ? 'shopCard-green' : 'shopCard-red']]
    }, [_c('image', {
      staticClass: ["shopCard-bg-image"],
      attrs: {
        "src": "http://cdn.rzico.com/v4.0/wallet-cardBg.png"
      }
    }), _c('text', {
      staticClass: ["shopCard-text1"]
    }, [_vm._v("可用余额")]), _c('div', {
      staticClass: ["shopCard-text4"]
    }, [_c('div', {
      staticClass: ["shopCard-text4-border1"]
    }, [_c('text', {
      staticClass: ["shopCard-text4-border2"]
    }, [_vm._v(_vm._s(item.memo))])])]), _c('text', {
      staticClass: ["shopCard-text2"]
    }, [_vm._v("￥" + _vm._s(item.balance))]), _c('text', {
      staticClass: ["shopCard-text5"]
    }, [_vm._v(_vm._s(item.companyName))]), _c('text', {
      staticClass: ["shopCard-text6"]
    }, [_vm._v(_vm._s(item.tag))]), _c('text', {
      staticClass: ["shopCard-text3"]
    }, [_vm._v("有效期 " + _vm._s(item.startDate) + "~" + _vm._s(item.endDate))])])])
  })), _c('button', {
    staticClass: ["shopCard-button"],
    attrs: {
      "text": _vm.isTimeout ? '已过期' : '去使用'
    },
    on: {
      "click": _vm.goShopping
    }
  })], 1) : _c('div', [_vm._m(0)])]), _c('scroller', [_c('div', {
    staticClass: ["shopCard-bottom"]
  }, _vm._l((_vm.shopCardDetail), function(item) {
    return _c('div', [_c('div', {
      staticClass: ["shopCard-bottom-list"]
    }, [_c('image', {
      staticClass: ["shopCard-bottom-list-image"],
      attrs: {
        "src": item.icon
      }
    }), _c('div', {
      staticClass: ["bottom-item"]
    }, [_c('div', {
      staticClass: ["shopCard-bottom-list-top"]
    }, [_c('text', {
      staticClass: ["shopCard-bottom-list-top1"]
    }, [_vm._v(_vm._s(item.memo))]), _c('text', {
      class: ['shopCard-bottom-list-top2', [item.isIncome == true ? 'redColor' : '']]
    }, [_vm._v("￥ " + _vm._s(item.result))])]), _c('div', {
      staticClass: ["shopCard-bottom-list-bottom"]
    }, [_c('text', {
      staticClass: ["shopCard-bottom-list-bottom-text"]
    }, [_vm._v(_vm._s(item.createDate))]), _c('text', {
      staticClass: ["shopCard-bottom-list-bottom-text"]
    }, [_vm._v("余额：" + _vm._s(item.balance))])])])])])
  })), _c('loading', {
    staticClass: ["loading"],
    attrs: {
      "display": _vm.loadinging ? 'show' : 'hide'
    },
    on: {
      "loading": _vm.onloading
    }
  }, [_c('text', {
    staticClass: ["indicator-text"]
  }, [_vm._v("加载中...")])])])], 1)
},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["shopCard-bg", "shopCard-grey"]
  }, [_c('image', {
    staticClass: ["shopCard-bg-image"],
    attrs: {
      "src": "http://cdn.rzico.com/v4.0/wallet-cardBg.png"
    }
  }), _c('text', {
    staticClass: ["shopCard-text7"]
  }, [_vm._v("当前暂时无福利")]), _c('div', {
    staticClass: ["shopCard-text8"]
  }, [_c('text', {
    staticClass: ["shopCard-text8-border2"]
  }, [_vm._v("敬")]), _c('text', {
    staticClass: ["shopCard-text8-border2"]
  }, [_vm._v("请")]), _c('text', {
    staticClass: ["shopCard-text8-border2"]
  }, [_vm._v("期")]), _c('text', {
    staticClass: ["shopCard-text8-border2"]
  }, [_vm._v("待")])])])
}]}
module.exports.render._withStripped = true

/***/ }),

/***/ "./src/api/card.js":
/*!*************************!*\
  !*** ./src/api/card.js ***!
  \*************************/
/*! exports provided: summary, cardBillList, list */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "summary", function() { return summary; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardBillList", function() { return cardBillList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "list", function() { return list; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");
 //用户各种卡余额

function summary() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/card/summary',
    method: 'get'
  });
} //用户各种卡消费明细列表

function cardBillList(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/card_bill/list',
    method: 'get',
    params: params
  });
} //用户各种卡信息

function list(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/card/list',
    method: 'get',
    params: params
  });
}

/***/ }),

/***/ "./src/components/myNavbar/myNavbar.vue":
/*!**********************************************!*\
  !*** ./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/components/myNavbar/myNavbar.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-0ae5e94f"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ "./src/entry.js":
/*!**********************!*\
  !*** ./src/entry.js ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

// 注意：修改此文件需要重新执行npm才会生效
// 注册全局组件示例
// import headNav from './components/headNav'
// Vue.component('headNav', headNav);

/***/ }),

/***/ "./src/pages/member/shopCard/shopCard.vue?entry=true":
/*!***********************************************************!*\
  !*** ./src/pages/member/shopCard/shopCard.vue?entry=true ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-24e0e73e!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./shopCard.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-24e0e73e!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/shopCard/shopCard.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./shopCard.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/shopCard/shopCard.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-24e0e73e!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./shopCard.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-24e0e73e!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/shopCard/shopCard.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/pages/member/shopCard/shopCard.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-24e0e73e"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ }),

/***/ "./src/utils/request.js":
/*!******************************!*\
  !*** ./src/utils/request.js ***!
  \******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Created by zhangsr on 2020/7/6.
 */
var stream = weex.requireModule('stream') || {};
var eeui = app.requireModule('eeui');

var Json2Url = function Json2Url(data) {
  try {
    var tempArr = [];

    for (var i in data) {
      var key = i;
      var value = encodeURIComponent(data[i]);
      tempArr.push(key + '=' + value);
    }

    var urlParamsStr = tempArr.join('&');
    return urlParamsStr;
  } catch (err) {
    return '';
  }
};

var request = function request(data) {
  var _this = this;

  return new Promise(function (resolve, reject) {
    var gdata = eeui.getCachesString("globalData", '');
    var globalData = JSON.parse(gdata);
    var token = globalData.token; // globalData.APP_BASE_API

    var APP_BASE_API = globalData.APP_BASE_API; // var APP_BASE_API ='https://api.365.qmin365.cn:8443'

    var header = {};

    if (token != null) {
      header = {
        'Authorization': token,
        'Content-Type': 'application/json'
      };
    }

    var url = data.url;

    if (data.params != null && data.params != undefined) {
      var params = Json2Url(data.params);

      if (url.indexOf('?') >= 0) {
        url = url + '&' + params;
      } else {
        url = url + '?' + params;
      }
    }

    stream.fetch({
      headers: header,
      method: data.method,
      url: APP_BASE_API + url,
      type: 'json',
      body: data.data,
      timeout: 20000
    }, function (ret) {
      // eeuiLog.log(ret)
      if (!ret.ok) {
        eeui.toast({
          message: '请求出错',
          gravity: 'middle'
        });
        reject(ret.statusText);
      } else {
        if (ret.data.type == "error") {
          eeui.toast({
            message: ret.data.content,
            gravity: 'middle'
          });
          reject(ret.data);
        } else {
          resolve(ret.data);
        }
      }
    });
  });
};

/* harmony default export */ __webpack_exports__["default"] = (request);

/***/ })

/******/ });